package com.xijia.wuyouwallet.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.xijia.wuyouwallet.R;
import com.xijia.wuyouwallet.base.BaseActivity;
import com.xijia.wuyouwallet.utils.Constants;

/**
 * Created by Administrator on 2017/7/27 0027.
 */

public class BankSelectActivity extends BaseActivity implements View.OnClickListener{

    private ImageView bank_select_back;
    private LinearLayout bank_select_aplipay_ll,bank_select_weachat_ll;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bank_select);
        initView();
    }

    private void initView(){
        bank_select_back = (ImageView) findViewById(R.id.bank_select_back);
        bank_select_back.setOnClickListener(this);
        bank_select_aplipay_ll = (LinearLayout) findViewById(R.id.bank_select_aplipay_ll);
        bank_select_aplipay_ll.setOnClickListener(this);
        bank_select_weachat_ll = (LinearLayout) findViewById(R.id.bank_select_weachat_ll);
        bank_select_weachat_ll.setOnClickListener(this);

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.bank_select_back:
                finish();
                break;
            case R.id.bank_select_aplipay_ll:
                Intent intent = new Intent();
                intent.putExtra("type","1");
                BankSelectActivity.this.setResult(Constants.RESULT_DATA,intent);
                BankSelectActivity.this.finish();
                break;
            case R.id.bank_select_weachat_ll:
                showToast("正在开发,敬请期待");
                break;
        }
    }
}
